﻿@using Company.Project.Domain.Model
@model Project_Manager_BaseInfo
@Html.HiddenFor(x => x.ID)
@using Company.Project.Domain.Model.DTO.Manager
@{
    var RoleLsit = (List<RoleListDTO>)ViewBag.RoleList;
}

<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"><span style="color: red">*</span>登录名</label>
    <div class="col-sm-9">
        <div class="clearfix">
            <input type="text" id="LoginName" name="LoginName" required maxlength="20" @(Model.ID!=Guid.Empty?"readonly=\"readonly\"":"") checkeng="true" value="@Model.LoginName" placeholder="请输入登录名" class="col-xs-10 col-sm-5">
        </div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right">密码</label>
    <div class="col-sm-9">
        <div class="clearfix">
            <input type="password" id="PassWord" @Html.Raw(Model.ID!=Guid.Empty ? "" : " minlength=\"6\"  maxlength=\"12\"") name="PassWord" @(string.IsNullOrEmpty(Model.PassWord) ? "required" : "") value="@(string.IsNullOrEmpty(Model.PassWord)?Model.PassWord:"")" placeholder="请输入密码" class="col-xs-10 col-sm-5">
        </div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"><span style="color: red">*</span>昵称</label>
    <div class="col-sm-9">
        <div class="clearfix">
            <input type="text" id="NickName" name="NickName" required maxlength="20" value="@Model.NickName" placeholder="请输入昵称" class="col-xs-10 col-sm-5">
        </div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right">状态</label>
    <div class="col-sm-9">
        <div class="clearfix">
            <select class="input-medium" id="State" name="State" ajax-url="/Admin/System/GetEnumManagerState?code=@Model.State"></select>

        </div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right">用户角色</label>
    @{
        foreach (RoleListDTO item in RoleLsit)
        {
            <div class="roel">
                <input type="checkbox" class='ace actionid' @Html.Raw(item.Ischeck ? "checked=\"checked\"" : "") value="@item.ID">
                <span class="lbl"><span style="margin-left: 6px;">@item.RoleName</span> </span>
            </div>
        }
    }

</div>
<script src="~/Areas/Admin/js/System/ManagerDetial.js"></script>
<style type="text/css">
    .roel {
        margin-top: 9px;
        float: left;
        margin-left: 8px;
    }
</style>